package com.ajavaer.framework.core.orm.po;

import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.EntityListeners;
import javax.persistence.MappedSuperclass;

@MappedSuperclass
@EntityListeners({AuditingEntityListener.class})
public class LogicDeletePo extends AuditingPo {

    /**
     * 逻辑删除,默认0:正常,1:已删除
     */
    @Column(name = "del", columnDefinition = "bit default 0")
    private Boolean del;

    public Boolean getDel() {
        return del;
    }

    public void setDel(Boolean del) {
        this.del = del;
    }
}
